package ModelLayer;


/**
 * Write a description of class Item here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Item
{
    private long id;
    private String location;
    private String name;
    private ItemCategory category;
    private int price;
    private int stock;
    
    /**
     * Constructor for objects of class Item.
     */
    
    public Item()
    {
        
    }
    
    public Item(long id, String location, String name)
    {
        this.id = id;
        this.location = location;
        this.name = name;
    }
    
    public void setId(long newId)
    {
        id = newId;
    }
    
    public void setName(String newName)
    {
        name = newName;
    }
    
    public void setLocation(String newLocation)
    {
        location = newLocation;
    }
    
    public void setCategory(ItemCategory category)
    {
        this.category = category;
    }
    
    public long getId()
    {
        return id;
    }
    
    public String getName()
    {
        return name;
    }
    
    public String getLocation()
    {
        return location;
    }
    
    public ItemCategory getCategory()
    {
        return category;
    }
    
    public void setStock(int _newStock)
    {
        stock = _newStock;
    }
    
    public int getStock()
    {
        return stock;
    }
    
    public int getPrice()
    {
        return price;
    }
    
    public void setPrice(int _newPrice)
    {
        price = _newPrice;
    }
}
